﻿<link rel="stylesheet" href="/Content/kindeditor/themes/default/default.css" />
<link rel="stylesheet" href="/Content/kindeditor/plugins/code/prettify.css" />
<script charset="utf-8" src="/Content/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="/Content/kindeditor/lang/zh_CN.js"></script>
<script charset="utf-8" src="/Content/kindeditor/plugins/code/prettify.js"></script>
<script>
    KindEditor.ready(function(K) {
			var editor1 = K.create('.KEditor', { 
			    cssPath: '/Content/kindeditor/plugins/code/prettify.css',
			    uploadJson: '/Upfile/upload_json.ashx',
			    fileManagerJson: '/Upfile/file_manager_json.ashx',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						K('form[name=example]')[0].submit();
					});
                },
                afterBlur: function () {
                    this.sync();
                } 
			});
			prettyPrint();
		});
</script>
